#
# Be sure to run `pod lib lint LXBaseView.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'LXBaseView'
  s.version          = '0.1.0'
  s.summary          = 'LXBaseView is builted for swift components. Base Module'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
1.Base utils, base mvvc.
2.Different open && 'public'
3.Remove Colors && Fonts
4.Modify shared
5.Modify model property
6.Change channel position
7.Modify utils model property 'public'
8.Add handle password input method
9.Delete Macro const
10.Public basePresenter && add AccountLockedTool
11.Modify Localize-Swift dependency from LXNetwork to LXUtils
12.Combine Localize-Swift header
13.Public AccountLockedTool
14.Public ValidationService
15.Modify base url 'for' dev && stg
                       DESC

  s.homepage         = 'http://gitlab.360fin.holalauncher.com/components/LXBaseView'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'yanglixiang' => 'lxyang6688@163.com' }
  s.source           = { :git => 'http://gitlab.360fin.holalauncher.com/components/LXBaseView.git', :branch => 'master' }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'
  s.swift_version = '4.2'

  s.source_files = 'LXBaseView/Classes/**/*'
  
  # s.resource_bundles = {
  #   'LXBaseView' => ['LXBaseView/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  
  s.dependency 'LXToast-Swift', '~> 4.0.1'
  s.dependency 'SnapKit', '~> 4.0.1'
  s.dependency 'RxSwift', '~> 4.3.1'
  s.dependency 'RxCocoa', '~> 4.3.1'
  
  s.subspec 'LXServerChange' do |b|
      b.source_files = 'LXBaseView/LXServerChange/**/*'
      b.dependency 'LXBaseView/LXUtils'
  end
  
  s.subspec 'LXNetwork' do |b|
      b.source_files = 'LXBaseView/LXNetwork/**/*'
      b.dependency 'LXBaseView/LXUtils'
      b.dependency 'AFNetworking', '~> 3.2.1'
  end
  
  s.subspec 'LXUtils' do |b|
      b.source_files = 'LXBaseView/LXUtils/**/*'
      b.dependency 'HandyJSON', '~> 4.2.0'
      s.dependency 'UICKeyChainStore', '~> 2.1.1'
      s.dependency 'ReachabilitySwift', '~> 4.1.0'
      s.dependency 'SimulateIDFA', '~> 0.0.1'
      b.dependency 'Localize-Swift', '~> 2.0.0'
  end
  
  s.subspec 'LXEncryptor' do |b|
      b.source_files = 'LXBaseView/LXEncryptor/**/*'
      b.dependency 'LXBaseView/LXUtils'
      
      b.resource_bundles = {
          'LXEncryptor' => ['LXBaseView/LXEncryptor/Assets/*']
      }
  end

end
